import React from 'react'
import { useLocation } from 'react-router-dom'
import qs from 'qs'
export default function News() {
    const Location=useLocation()
    const {name,id }= qs.parse(Location.search.split('?')[1])
  return (
    <div>
        <h1>News</h1>
         <p>用户名：{name} 用户id:{id}</p>
    </div>
  )
}